﻿@*
 * Copyright © 2012 - 2013 François Chabot, Yves Dierick
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *@
@using Be.Stateless.BizTalk.Web.Monitoring.Site.Helpers
@model Be.Stateless.BizTalk.Monitoring.Model.Process

<fieldset>
	<legend>@Model.FriendlyName Process</legend>
	<div class="display-label">Process Name</div>
	<div class="display-field">
		@Html.SpanFor(model => model.Name)
	</div>
	<div class="display-label">Begin Time</div>
	<div class="display-field">
		@Html.SpanFor(model => model.BeginTime.ToLocalTime(), new { title = Model.BeginTime })
	</div>
	<div class="display-label">End Time</div>
	<div class="display-field">
		@Html.SpanFor(model => model.EndTime.HasValue ? model.EndTime.Value.ToLocalTime() : model.EndTime, new { title = Model.EndTime })
	</div>
	<div class="display-label">Status</div>
	<div class="display-field">
		@Html.SpanFor(model => model.AggregatedStatus)
	</div>
	<div class="display-label">Value 1</div>
	<div class="display-field">
		@Html.SpanFor(model => model.Value1)
	</div>
	<div class="display-label">Value 2</div>
	<div class="display-field">
		@Html.SpanFor(model => model.Value2)
	</div>
	<div class="display-label">Value 3</div>
	<div class="display-field">
		@Html.SpanFor(model => model.Value3)
	</div>
</fieldset>